home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000440_news@watsun.cc.columbia.edu _Thu Apr 15 16:28:37 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA15292
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 15 Apr 1999 16:28:36 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA27706
  7.     for kermit.misc@watsun.cc.columbia.edu; Thu, 15 Apr 1999 16:02:40 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Can kermit take its configuration from stdin? (Unix)
  11. Date: 15 Apr 1999 20:02:39 GMT
  12. Organization: Columbia University
  13. Message-ID: <7f5gkv$r1o$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <7f5f9b$2vp$1@nnrp1.dejanews.com>,
  17.  <john_cosimano@my-dejanews.com> wrote:
  18. : I am trying to figure out if there is a way to have kermit take its
  19. : configration file from stdin.
  20. :
  21. : I am running on RedHat Linux 5.2. Basically, I
  22. : am running a multiport serial board (256 serial connections), and I want to
  23. : avoid writing 256 configuration files. The only configuration directive that
  24. : needs to change from file to file is the set line /dev/ttyC#. I figured it
  25. : would be nice if I could have a template file and construct the full
  26. : configuration file based on an argument or two I pass to a wrapper script I
  27. : have written for my application.
  28. : My idea, however, will only work if one can force kermit to take its config
  29. : from stdin. A cursory glance through the documentation didn't show anything
  30. : promising. Is this possible?
  31. No.  Why not just pass the device name on the command line?  Example:
  32.  
  33.   kermit -l /dev/ttyS0
  34.  
  35. Or in a shell script:
  36.  
  37.   kermit -l $1
  38.  
  39. This way, the initialization file is independent of the device.
  40.  
  41. - Frank